package com.czg.designmode.builder;

/**
 * 套餐建造者测试类
 *
 * @author chenzhigang
 */
public class MealBuilderTest {

    public static void main(String[] args) {
        Meal meal1 = MealBuilder.meal1();
        meal1.showItems();
        System.out.println("总金额：" + meal1.getCost());

        Meal meal2 = MealBuilder.meal2();
        meal2.showItems();
        System.out.println("总金额：" + meal2.getCost());
    }

}
